package com.cardroid;



import org.mavlink.messages.ardupilotmega.msg_heartbeat;

import android.app.Activity;
import android.os.Bundle;


public class MainActivity extends Activity {

	int sequence=1;
	@Override
	public void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		msg_heartbeat hb = new msg_heartbeat(2, 2);
		hb.sequence = sequence++;
		hb.autopilot = autopilot;
		hb.base_mode = base_mode;
		hb.custom_mode = custom_mode;
		hb.mavlink_version = mavlink_version;
		hb.system_status = system_status;
		hb.type = type;
		byte[] result = hb.encode();
		dos.put(result);
	}
	
}